package summit.tests
{
import summit.basecamp.helpers.AttachmentHelper;
import summit.data.AccountToken;
import summit.events.BasecampAPIEvent;
import summit.tests.tools.SummitTestContainer;

public class AttachmentHelperTests extends SummitTestContainer
{
	
	public function AttachmentHelperTests(token:AccountToken)
	{
		super(token);
	}
	
	public function xmlAttachmentTest(context:Object):void
	{
		super.initializeLoader(loader_OKTextAttachment);
		
		var testStr:String = "This is a test string";
		
		loader.load(AttachmentHelper.upload(projectId, testStr, "Text File",
		"test.txt", "text/plain"));
	}
	
	private function loader_OKTextAttachment(e:BasecampAPIEvent):void
	{
		super.completeAsyncTest();
	}
	
}
}